package com.xmtlxx.wms.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 出库明细业务对象 t_ex_warehouse_dtl
 *
 * @author xmtlxx
 * @date 2022-08-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("出库明细业务对象")
public class ExWarehouseDtlBo extends BaseEntity {

    /**
     * 出库明细ID
     */
    @ApiModelProperty(value = "出库明细ID")
    private String id;

    /**
     * 出库单ID
     */
    @ApiModelProperty(value = "出库单ID", required = true)
    @NotBlank(message = "出库单ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wid;

    /**
     * 物品编号
     */
    @ApiModelProperty(value = "物品编号", required = true)
    @NotBlank(message = "物品编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pno;

    /**
     * 物品名称
     */
    @ApiModelProperty(value = "物品名称", required = true)
    @NotBlank(message = "物品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 物品所在单位
     */
    @ApiModelProperty(value = "物品所在单位", required = true)
    @NotNull(message = "物品所在单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 物品所在机构单位
     */
    @ApiModelProperty(value = "物品所在机构单位", required = true)
    @NotNull(message = "物品所在机构单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orgId;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量", required = true)
    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long nums;

    /**
     * 图片附件
     */
    @ApiModelProperty(value = "图片附件")
    private String pics;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String status;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;
    @ApiModelProperty(value = "部门")
    private String deptName;

    @ApiModelProperty(value = "机构")
    private String localName;

    @ApiModelProperty(value = "仓库ID")
    private String storeId;

    @ApiModelProperty(value = "仓库名称")
    private String storeName;

    /**
     * 箱号
     */
    @ApiModelProperty(value = "箱号")
    private String boxNo;
    /**
     * 货箱ID
     */
    @ApiModelProperty(value = "货箱ID")
    private String boxId;

    /**
     * 是否封箱
     */
    @ApiModelProperty("是否封箱")
    private String seal;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型")
    private String type;

}
